package com.old.people.service.serviceImp;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.old.people.dao.LoginMapper;
import com.old.people.service.LoginService;

@Service
public class LoginServiceImp implements LoginService {//登录
	@Autowired
	private LoginMapper loginMapper;

	@Override
	public boolean login(String account_id, String account_password, String account_type) {
		Integer num=loginMapper.login(account_id, account_password, account_type);
		if(num==1) {
			return true;
		}
		return false;
	}

}
